import request from '@/utils/request'

// 查询租赁记录列表
export function listRentalRecord(query) {
  return request({
    url: '/wx/rentalRecord/list',
    method: 'get',
    params: query
  })
}

// 查询租赁记录详细
export function getRentalRecord(id) {
  return request({
    url: '/wx/rentalRecord/' + id,
    method: 'get'
  })
}

// 新增租赁记录
export function addRentalRecord(data) {
  return request({
    url: '/wx/rentalRecord',
    method: 'post',
    data: data
  })
}

// 修改租赁记录
export function updateRentalRecord(data) {
  return request({
    url: '/wx/rentalRecord',
    method: 'put',
    data: data
  })
}

// 删除租赁记录
export function delRentalRecord(id) {
  return request({
    url: '/wx/rentalRecord/' + id,
    method: 'delete'
  })
}

// 导出租赁记录
export function exportRentalRecord(query) {
  return request({
    url: '/wx/rentalRecord/export',
    method: 'get',
    params: query
  })
}